package cn.gaily.oss;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

//添加属性，不扫描数据库配置
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages = {"cn.gaily"})
@EnableDiscoveryClient
public class ServiceOSSApplication {

        public static void main(String[] args) {
            SpringApplication.run(ServiceOSSApplication.class, args);
        }
}
